package controllers;

import play.Routes;
import play.mvc.Controller;
import play.mvc.Result;
import views.html.*;

public class Application extends Controller {
	
	public static Result index() {
		return ok(index.render("Welcome to " + play.Play.application().configuration().getString("application.name") + "!"));
	}
	
	public static Result javaScriptRoutes() {
		response().setContentType("text/javascript");
		return ok(Routes.javascriptRouter("jsRoutes", controllers.routes.javascript.Configurations.getConfigContentRaw()));
	}
	
}
